﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Contract.Domain
{
    /// <summary>
    ///  
    /// </summary>
    [DataContract(Namespace = "Contract")]
    public partial class t_sys_user : Framework.Domain.Entity
    {


        /// <summary>
        ///  用户姓名
        /// </summary>
        [DataMember]
        public virtual string USER_NAME
        {
            get;
            set;
        }
        /// <summary>
        ///  用户账号
        /// </summary>
        [DataMember]
        public virtual string UserCode
        {
            get;
            set;
        }
        /// <summary>
        ///  密码
        /// </summary>
        [DataMember]
        public virtual string PASSWORD
        {
            get;
            set;
        }

        /// <summary>
        ///  身份证号
        /// </summary>
        [DataMember]
        public virtual string ID_CARD
        {
            get;
            set;
        }

        /// <summary>
        ///  单位ID
        /// </summary>
        [DataMember]
        public virtual string DEPT_ID
        {
            get;
            set;
        }
        /// <summary>
        /// 单位编码
        /// </summary>
        [DataMember]
        public virtual string OfficeCode
        {
            get;
            set;
        }
        /// <summary>
        ///  角色ID
        /// </summary>
        [DataMember]
        public virtual string ROLE_ID
        {
            get;
            set;
        }

        /// <summary>
        ///  警号
        /// </summary>
        [DataMember]
        public virtual string POLICE_NO
        {
            get;
            set;
        }

        /// <summary>
        ///  是否删除
        /// </summary>
        [DataMember]
        public virtual string SFSC
        {
            get;
            set;
        }

        /// <summary>
        ///  操作员，新增时记录
        /// </summary>
        [DataMember]
        public virtual string CZY
        {
            get;
            set;
        }

        /// <summary>
        ///  登记单位
        /// </summary>
        [DataMember]
        public virtual string DJDW
        {
            get;
            set;
        }

        /// <summary>
        ///  更新操作员，修改和删除时记录
        /// </summary>
        [DataMember]
        public virtual string GXCZY
        {
            get;
            set;
        }

        /// <summary>
        ///  入库时间
        /// </summary>
        [DataMember]
        public virtual string RKSJ
        {
            get;
            set;
        }

        /// <summary>
        ///  最后更新时间
        /// </summary>
        [DataMember]
        public virtual string ZHGXSJ
        {
            get;
            set;
        }
        bool _isSuperUser;
        /// <summary>
        /// 是否超级管理员
        /// </summary>
        [DataMember]
        public virtual bool IsSuperUser
        {
            get
            {
                return UserCode.Equals("admin");
            }
            set
            {
                _isSuperUser = value;
            }
        }
    }
}